package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabRptdetailStaining;
import com.ysd.lis.service.lab.LabRptdetailStainingService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-03-26
 */
@RestController
@RequestMapping("/api/bac/lab-rptdetail-staining")
public class LabRptdetailStainingController extends BaseController {
    @Autowired
    LabRptdetailStainingService labRptdetailStainingService;

    @ApiOperation("查询")
    @GetMapping("/findLabRptdetailStainingList")
    public Result findLabRptdetailStainingList(LabRptdetailStaining labRptdetailStaining) {
        return labRptdetailStainingService.findLabRptdetailStainingList(labRptdetailStaining);
    }

    @ApiOperation("增加")
    @PostMapping("/addLabRptdetailStaining")
    public Result addLabRptdetailStaining(@RequestBody LabRptdetailStaining labRptdetailStaining) {
        return labRptdetailStainingService.addLabRptdetailStaining(labRptdetailStaining);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteLabRptdetailStaining")
    public Result deleteLabRptdetailStaining(@RequestBody LabRptdetailStaining labRptdetailStaining) {
        return labRptdetailStainingService.deleteLabRptdetailStaining(labRptdetailStaining);
    }

    @ApiOperation("修改")
    @PostMapping("/updateLabRptdetailStaining")
    public Result updateLabRptdetailStaining(@RequestBody LabRptdetailStaining labRptdetailStaining) {
        return labRptdetailStainingService.updateLabRptdetailStaining(labRptdetailStaining);
    }
}
